<?php
error_reporting (E_ALL ^ E_NOTICE);
require_once 'elements/helper.php';
if(empty($_GET)) $_GET['prefix'] = 'ctg';


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Kuner Architekten<?php echo pageTitle($_GET); ?></title>
        
		<link type="text/css" href="css/frontend/layout.css" rel="stylesheet" />
		
        <!--[if lte IE 7]>
            <link href="css/frontend/patches/patch_layout.css" rel="stylesheet" type="text/css" />
        <![endif]-->
        
		<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
		<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
		<script type="text/javascript" src="lib/js/frontend/site.js"></script>
        <script type="text/javascript" src="lib/js/frontend/itemContainer.js"></script>
        <script type="text/javascript" src="lib/js/frontend/item.js"></script>
        <script type="text/javascript" src="lib/js/frontend/category.js"></script>
        <script type="text/javascript" src="lib/js/frontend/project.js"></script>
        <script type="text/javascript" src="lib/js/frontend/button.js"></script>
		<!-- <script type="text/javascript" src="lib/js/plugins/shadowbox-3.0.3/shadowbox.js"></script> -->
		<script type="text/javascript" src="lib/js/plugins/fancybox/jquery.fancybox.pack.js"></script>
		<script type="text/javascript" src="lib/js/plugins/fancybox/helpers/jquery.fancybox-thumbs.js"></script>

        <script type="text/javascript">
		/* <![CDATA[ */
		
		if(noPHPMode)
			//bei voller AJAX Funktionalität JavaScript vor $(document).ready initiieren
			$(window).load(function(){
                init(<?php echo json_encode($_GET); ?>);
            });
		else
            $(document).ready(function(){
                init(<?php echo json_encode($_GET); ?>);
            });
		/* ]]> */
        </script>
    </head>
    <body>
        <div class="page_margins">
        	<!-- start: skip link navigation -->
		    <a class="skip" title="skip link" href="#categories">Skip to the navigation</a><span class="hideme">.</span>
		    <a class="skip" title="skip link" href="#buttons">Skip to the content</a><span class="hideme">.</span>
		    <!-- end: skip link navigation -->
		    <div class="page">
				<div id="main">
					<?php 
					if(!isset($_GET[ctg_id]) || isset($_GET[ctg_id]) && $_GET[ctg_id] == 0) {
						include_once 'elements/preface.php';
					} else {
						require_once 'elements/categories.php';
						require_once 'elements/projects.php';
						require_once 'elements/buttons.php';
					}
					
						require_once 'elements/footer.php';
					?>
			</div>
		</div>
    </body>
</html>